package com.lzx.applib.utils;

/**
 * Created by Administrator on 2017/3/26.
 */

public class FormatUtil {

    private FormatUtil() {}

    public static String format(double num, int places) {
        String format = "%." + places + "f";
        String result = String.format(format, num);
        return result;
    }

}
